/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package smary.managed.install;

import javax.ejb.Stateless;

/**
 * Stellt den einmaligen Ablauf der Installation dar bzw dessen Schritte.
 * @author Alexander Cannell
 */
@Stateless
public class InstallationService {

    private final static int welcome = 1;
    private final static int operateInstall = 2;
    private final static int finish = 3;
    
    
    private int step = welcome;
    
    
    public InstallationService() {
    }
    private String operateStep(int step){
        switch(step){
            case welcome:
                return welcome();
                
            case operateInstall:
                return install();
                
            case finish:
                return finish();
        }return null;
    }
    private void nextStep(){
        if(welcome < finish)step++;
    }
    public int getStep() {
        return step;
    }
    public void setStep(int step) {
        this.step = step;
    }

    private String welcome() {
        throw new UnsupportedOperationException("Not yet implemented");
    }

    private String install() {
        throw new UnsupportedOperationException("Not yet implemented");
    }

    private String finish() {
        throw new UnsupportedOperationException("Not yet implemented");
    }
    
}
